package com.synergy.stockflow.team.controller;

import com.synergy.stockflow.model.Result;
import com.synergy.stockflow.team.entity.TeamSchedulingDetail;
import com.synergy.stockflow.team.service.TeamSchedulingDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/team-scheduling-detail")
public class TeamschedulingdetailController {

    @Autowired
    TeamSchedulingDetailService teamSchedulingDetailService;


    @GetMapping("/list")
    public Result<List<TeamSchedulingDetail>> list() {
        return Result.success(teamSchedulingDetailService.list());
    }
}
